﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NeuralNetworkComponents
{
    public class ActivationLayer : Layer
    {
        public new ActivationNeuron this[int index]
        {
            get { return (ActivationNeuron)Neurons[index]; }
        }

        public ActivationLayer(int neuronsCount, int inputsCount, IActivationFunction function)
            : base(neuronsCount, inputsCount)
        {
            for (int i = 0; i < neuronsCount; i++)
                this.Neurons[i] = new ActivationNeuron(inputsCount, function);
        }
    }
}
